var Scrolling=false;
function Scrolung(o){return document.getElementById(o)}
function ScroMove(){Scrolling=true}
document.onmousemove=function(e){if(Scrolling==false)return;ScroNow(e)}
document.onmouseup=function(e){Scrolling=false}
function ScroNow(event){
 var event=event?event:(window.event?window.event:null);
 var Y=event.clientY-Scrolung("Scroll").getBoundingClientRect().top-Scrolung("ScroLine").clientHeight/2;
 var H=Scrolung("ScroRight").clientHeight-Scrolung("ScroLine").clientHeight;
 var SH=Y/H*(Scrolung("ScroLeft").scrollHeight-Scrolung("ScroLeft").clientHeight);
 if (Y<0)Y=0;if (Y>H)Y=H;
 Scrolung("ScroLine").style.top=Y+"px";
 Scrolung("ScroLeft").scrollTop=SH;
 }
function ScrollWheel(){
 var Y=Scrolung("ScroLeft").scrollTop;
 var H=Scrolung("ScroLeft").scrollHeight-Scrolung("ScroLeft").clientHeight;
 if (event.wheelDelta >=120){Y=Y-80}else{Y=Y+80}
 if(Y<0)Y=0;if(Y>H)Y=H;
 Scrolung("ScroLeft").scrollTop=Y;
 var SH=Y/H*Scrolung("ScroRight").clientHeight-Scrolung("ScroLine").clientHeight;
 if(SH<0)SH=0;
 Scrolung("ScroLine").style.top=SH+"px";
}
